// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.el-select-v2__suffix .el-input__icon {
  height: inherit;
}

.layer-modal{
  .el-dialog__body{
    padding: 0;
    &:first-child{
      padding: 15px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
// .el-dialog {
//   transform: none;
//   left: 0;
//   position: relative;
//   margin: 0 auto;
// }

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-button--text {
  font-size: 14px !important;
}

//表格样式重置
.el-table td .cell,
.el-table th .cell,
.el-table__expanded-cell {
  font-size: 14px;
  font-weight: 400;
  color: #606266;
}
.el-table {
  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {
    th {
      word-break: break-word;
      background-color: #f8f8f9 !important;
      //background-color: #fafafa;
      color: #515a6e;
      //color: rgba(0,0,0,.85);
      height: 40px;
      font-size: 13px;
    }
  }
  .el-table__body-wrapper {
    .el-button [class*="el-icon-"] + span {
      margin-left: 1px;
    }
  }
  .el-table__cell:first-child .cell {
    padding-left: 10px;
  }
  .el-empty__description {
    margin-top: 0px;
  }

  //表格加载动画
  .el-loading-mask {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .el-loading-spinner {
    background: #fff;
    border-radius: 100%;
    padding: 8px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
    height: 45px;
    width: 45px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .el-loading-spinner .circular {
    width: 30px;
    height: 30px;
  }
  .el-loading-spinner .path {
    stroke-width: 4;
    //stroke: #f5bc21;
  }
}

//选择器样式重置
.el-select-dropdown {
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 8%);
  margin-top: 2px !important;
  .popper__arrow {
    display: none !important;
  }
  .el-scrollbar .el-select-dropdown__wrap .el-select-dropdown__list {
    padding: 5px 0;
  }
}

//表格选中
.s-table {
  .selected-row {
    background-color: var(--el-table-row-hover-bg-color) !important;
  }
}


